﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="<%=request.getContextPath()%>/" />
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="js/jquery.js"></script>

<script type="text/javascript">
	$(function() {
		//导航切换
		$(".menuson li").click(function() {
			$(".menuson li.active").removeClass("active")
			$(this).addClass("active");
		});
		$('.title').click(function() {
			var $ul = $(this).next('ul');
			$('dd').find('ul').slideUp();
			if ($ul.is(':visible')) {
				$(this).next('ul').slideUp();
			} else {
				$(this).next('ul').slideDown();
			}
		}); 
	}); 
 
</script>
<script type="text/javascript">
	
</script>
</head>

<body style="background: #f0f9fd;">
	<div class="lefttop">
		<span></span>系统菜单
	</div>

	<dl class="leftmenu">
		<c:forEach var="menu" items="${mainmenu}">
			<c:if test="${menu.visible}">
				<dd>
					<div class="title">
						<span><img src="${menu.img}" /></span>${menu.name }
					</div>
					<ul class="menuson">
						<c:forEach var="item" items="${menu.subMenus }">
							<c:if test="${item.visible}">
								<li><cite></cite><a href="${item.url}" target="${item.target }">${item.name }</a><i></i></li>
							</c:if>
						</c:forEach>
					</ul>
				</dd>
			</c:if>
		</c:forEach>
	</dl>
</body>
</html>
